<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function playGame() {
        console.log('play for a time');
    }
    let dyq = {
        playGame : function () {
            console.log('play for a time');
        },
        uname: 'dyq'
    }
    dyq.playGame();
    playGame();
</script>
</body>
</html>